Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633462 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/192 - Wall Breaker Game

README.md cody/swapnilsparsh/30DaysOfJavaScript/192 - Wall Breaker Game/README.md
166 Views
0 Comments
# Break the Wall Game

- Press up Arrow Key Left/Right Arrow Key to Move

# Screenshots
![image](https://user-images.githubusercontent.com/72241207/170699747-5c37edeb-534e-4265-8ff7-3e1f37fdbdf8.png)

style.css cody/swapnilsparsh/30DaysOfJavaScript/192 - Wall Breaker Game/style.css
114 Views
0 Comments
body{
background-color: #fff;
background-size: 8px 8px, 8px 8px;
background-position: center, center;
background-image: linear-gradient(#ebf4f9 1px, transparent 1px),linear-gradient(90deg, #ebf4f9 1px, transparent 1px);
}

.container {
index.html cody/swapnilsparsh/30DaysOfJavaScript/192 - Wall Breaker Game/index.html
305 Views
0 Comments
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Break The Wall</title>
script.js cody/swapnilsparsh/30DaysOfJavaScript/192 - Wall Breaker Game/script.js
181 Views
0 Comments

const container = document.querySelector('.container');
let conDim = container.getBoundingClientRect();
const gameover = document.createElement('div');
gameover.textContent = "Click here to Start Game And Press up Arrow Key Left/Right Arrow Key to Move";
gameover.style.position = "absolute";
gameover.style.color = "white";
gameover.style.lineHeight = "60px";